// JavaScript Document
function formValidator()
{
var i;
var isbn = new Array();
isbn[1] = document.form.sbn9.value;
isbn[2] = document.form.isbn10.value;
isbn[3] = document.form.isbn13.value;
var size = new Array();
size[1] = 9;
size[2] = 10;
size[3] = 13;

for (i in isbn)
	{
		if ((isbn[i].length > 0)&&(isbn[i].length < size[i]))
		{
		alert("Please enter a complete ISBN");
		document.form.fcheck.value=null;
		elem.focus();
		return false;
		}
		else if (isbn[i].length == size[i])
		{
		alert("True");	
		return true;	
		}
	}
}